package com.zdsoft.finance.evaluate.entity;

import com.zdsoft.finance.project.entity.Project;
import com.zdsoft.framework.core.common.domain.BaseEntity;

import javax.persistence.*;
import java.math.BigDecimal;

/**
 *  项目评审域对象
 * @author LiaoGuoWei
 * @create 2016-10-18 15:13
 **/
@Entity
@Table(name = "ZF_PROJECT_EVALUATE")
public class ProjectEvaluate extends BaseEntity{

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
     * 客户编号
     */
    @Column(length = 32)
    private String clientCd;
    /**
     * 客户ID
     */
    @Column(length = 32)
    private String clientId;

    /**
     * 客户名称
     */
    @Column(length = 255)
    private String clientName;
    /**
     * 项目案号
     */
    @Column(length = 32)
    private String projectCode;
    /**
     * 项目ID
     */
    @Column(length = 32)
    private String projectId;

    /**
     *项目名称
     */
    @Column(length = 255)
    private String projectNm;


    /**
     * 申请金额
     */
    @Column(precision = 15,scale = 4)
    private BigDecimal amount;

    /**
     * 申请期限
     */
    @Column(length = 10)
    private Integer applyDeadline;

    /**
     * 申请期限单位
     */
    @Column(length = 32)
    private String applyDeadlineUnit;

    /**
     * 申请费率
     */
    @Column(precision = 15,scale = 6)
    private BigDecimal applyRate;

    /**
     * 申请费率单位
     */
    @Column(length = 255)
    private String applyRateUnit;


    /**
     * 业务品种CD
     */
    @Column(length = 32)
    private String businessTypeCd;
    /**
     * 业务品种name
     */
    @Column(length = 255)
    private String businessTypeNm;

    /**
     * 资金用途描述
     */
    @Lob
    private String capitalUseFor;

    /**
     * 拟保证措施
     */
    @Lob
    private String quasiGuarMeasures;

    /**
     * 项目来源
     */
    @Lob
    private String projectSource;

    /**
     * 项目概述
     */
    @Lob
    private String projectDesc;

    /**
     * 备注
     */
    @Lob
    private String remark;


    /**
     * 具体申请类型(类名)
     */
    @Column(length = 255)
    private String specificType;

    /**
     * 具体申请ID
     */
    @Column(length = 32)
    private String specificCd;

    /**
     *申请时间
     */
    @Column(length = 16)
    private Long applyDateTime;

    /**
     * 受理人编号
      */
    @Column(length = 32)
    private String acceptEmpCd;
    /**
     * 受理人姓名
      */
    @Column(length = 255)
    private String acceptEmpNm;

    /**
     * 授信ID
     */
    @Column(length = 32)
    private String creditId;

    /**
     * 中介机构编号
     */
    @Column(length = 32)
    private String intemediaryOrgCd;
    /**
     * 中介机构ID
     */
    @Column(length = 32)
    private String intemediaryOrgId;

    /**
     * 调查报告ID（attachmentId）
     */
    @Column(length = 32)
    private String surveyAttId;

    /**
     * 项目表关联
     */
    @OneToOne
    @JoinColumn(name = "project_id")
    private Project project;

    public String getBusinessTypeCd() {
        return businessTypeCd;
    }

    public void setBusinessTypeCd(String businessTypeCd) {
        this.businessTypeCd = businessTypeCd;
    }

    public String getSpecificCd() {
        return specificCd;
    }

    public void setSpecificCd(String specificCd) {
        this.specificCd = specificCd;
    }

    public String getApplyRateUnit() {
        return applyRateUnit;
    }

    public void setApplyRateUnit(String applyRateUnit) {
        this.applyRateUnit = applyRateUnit;
    }

    public String getBusinessTypeNm() {
        return businessTypeNm;
    }

    public void setBusinessTypeNm(String businessTypeNm) {
        this.businessTypeNm = businessTypeNm;
    }

    public Project getProject() {
        return project;
    }

    public void setProject(Project project) {
        this.project = project;
    }

    public String getClientCd() {
        return clientCd;
    }

    public void setClientCd(String clientCd) {
        this.clientCd = clientCd;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public String getProjectCode() {
        return projectCode;
    }

    public void setProjectCode(String projectCode) {
        this.projectCode = projectCode;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getProjectNm() {
        return projectNm;
    }

    public void setProjectNm(String projectNm) {
        this.projectNm = projectNm;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Integer getApplyDeadline() {
        return applyDeadline;
    }

    public void setApplyDeadline(Integer applyDeadline) {
        this.applyDeadline = applyDeadline;
    }

    public BigDecimal getApplyRate() {
        return applyRate;
    }

    public void setApplyRate(BigDecimal applyRate) {
        this.applyRate = applyRate;
    }

    public String getApplyDeadlineUnit() {
        return applyDeadlineUnit;
    }

    public void setApplyDeadlineUnit(String applyDeadlineUnit) {
        this.applyDeadlineUnit = applyDeadlineUnit;
    }

    public String getCapitalUseFor() {
        return capitalUseFor;
    }

    public void setCapitalUseFor(String capitalUseFor) {
        this.capitalUseFor = capitalUseFor;
    }

    public String getQuasiGuarMeasures() {
        return quasiGuarMeasures;
    }

    public void setQuasiGuarMeasures(String quasiGuarMeasures) {
        this.quasiGuarMeasures = quasiGuarMeasures;
    }

    public String getProjectSource() {
        return projectSource;
    }

    public void setProjectSource(String projectSource) {
        this.projectSource = projectSource;
    }


    public String getProjectDesc() {
        return projectDesc;
    }

    public void setProjectDesc(String projectDesc) {
        this.projectDesc = projectDesc;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getSpecificType() {
        return specificType;
    }

    public void setSpecificType(String specificType) {
        this.specificType = specificType;
    }


    public Long getApplyDateTime() {
        return applyDateTime;
    }

    public void setApplyDateTime(Long applyDateTime) {
        this.applyDateTime = applyDateTime;
    }

    public String getAcceptEmpCd() {
        return acceptEmpCd;
    }

    public void setAcceptEmpCd(String acceptEmpCd) {
        this.acceptEmpCd = acceptEmpCd;
    }


    public String getAcceptEmpNm() {
        return acceptEmpNm;
    }

    public void setAcceptEmpNm(String acceptEmpNm) {
        this.acceptEmpNm = acceptEmpNm;
    }

    public String getCreditId() {
        return creditId;
    }

    public void setCreditId(String creditId) {
        this.creditId = creditId;
    }

    public String getIntemediaryOrgCd() {
        return intemediaryOrgCd;
    }

    public void setIntemediaryOrgCd(String intemediaryOrgCd) {
        this.intemediaryOrgCd = intemediaryOrgCd;
    }

    public String getIntemediaryOrgId() {
        return intemediaryOrgId;
    }

    public void setIntemediaryOrgId(String intemediaryOrgId) {
        this.intemediaryOrgId = intemediaryOrgId;
    }

    public String getSurveyAttId() {
        return surveyAttId;
    }

    public void setSurveyAttId(String surveyAttId) {
        this.surveyAttId = surveyAttId;
    }
}
